package openadmin.jaas.exception;

import java.util.ResourceBundle;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

import openadmin.jaas.Context;


public class ExcepcioJaas extends Exception{

	JFrame frame;			
		
	 public ExcepcioJaas(int pCodi, String pText) {
	    			 	    	
		 if (pCodi == 1) JOptionPane.showMessageDialog(frame, pText);
		
		 else JOptionPane.showMessageDialog(frame, "Error Login" + "\n " + pText);
	    	
	 }
	
}
